 #define  _CRT_SECURE_NO_WARNINGS 1
#include"BinarySearchTree.h"
#include<iostream>
using namespace std;

int main()
{
	int a[] = { 8, 3, 1, 10, 6, 4, 7, 14, 13 };
	BSTree<int> b;

	for (auto e : a)
	{
		b.InsertR(e);
	}


	b.Inprint();

	for (auto e : a)
	{
		b.erase(e);
		b.Inprint();

	}
	


}